<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<head>
	<title>搜索物料</title>
</head>

<body class="container">
	<fieldset>
		<legend>
			模糊搜索物料
		</legend>
		<form action="m!like.z?page.currentPage=1" method="post">
			<input type="text" name="like" value="${like }" />
			<button type="submit" >
				搜索
			</button>
		</form>
	</fieldset>

	<hr class="space">

	<fieldset>
		<legend>
			组合搜索物料
		</legend>
		<form action="m!search.z?page.currentPage=1" method="post">
			<table class="edit">
				<tr>
					<td class="label">
						物料编号
					</td>
					<td>
						<input name="likeMaterial.code" value="${likeMaterial.code}" />
					</td>
				</tr>
				<tr>
					<td class="label">
						物料名称
					</td>
					<td>
						<input name="likeMaterial.name" value="${likeMaterial.name}" />
					</td>
				</tr>
				<tr>
					<td class="label">
						规格型号
					</td>
					<td>
						<input name="likeMaterial.specification" value="${likeMaterial.specification}" />
					</td>
				</tr>
				<tr>
					<td class="label">
						器件封装
					</td>
					<td>
						<input name="likeMaterial.footprint" value="${likeMaterial.footprint}" />
					</td>
				</tr>
				<tr>
					<td class="label">
						品牌
					</td>
					<td>
						<input name="likeMaterial.brand" value="${likeMaterial.brand}" />
					</td>
				</tr>
				<tr>
					<td class="label">
						器件描述
					</td>
					<td>
						<input name="likeMaterial.description" value="${likeMaterial.description}" />
					</td>
				</tr>
				<tr>
					<td class="label">
						供货商
					</td>
					<td>
						<input name="likeMaterial.supplier" value="${likeMaterial.supplier}" />
					</td>
				</tr>
				<tr>
					<td class="label">
						PCB封装
					</td>
					<td>
						<input name="likeMaterial.pcbDecal" value="${likeMaterial.pcbDecal}" />
					</td>
				</tr>
				<tr>
					<td class="label">
						临时编码
					</td>
					<td>
						<input name="likeMaterial.tmpCode" value="${likeMaterial.tmpCode}" />
					</td>
				</tr>
				<tr>
					<td class="label">
						备注
					</td>
					<td>
						<input name="likeMaterial.remark" value="${likeMaterial.remark}" />
					</td>
				</tr>
				<tr>
					<td class="label">
						采购状态
					</td>
					<td>
						<input type='radio' name="likeMaterial.state" value="" checked="checked" />任意值
						<input type='radio' name="likeMaterial.state" value="未发布"  />未发布
						<input type='radio' name="likeMaterial.state" value="推荐" />推荐
						<input type='radio' name="likeMaterial.state" value="一般"   />一般
						<input type='radio' name="likeMaterial.state" value="不推荐" />不推荐
						<input type='radio' name="likeMaterial.state" value="停用" />停用
						<input type='radio' name="likeMaterial.state" value="不规范" />不规范
				</td>
				</tr>
			</table>

			<button type="submit">
				搜索
			</button>
		</form>
	</fieldset>

</body>